package com.medic.mapper.interf;

import com.medic.entity.group.pain.Plan;

/**
 * 计划操作映射
 * 
 * @author Mr.zhang
 *
 */
public interface PlanMapper extends MapperInterface<Plan> {

	/**
	 * 根据计划的id查询
	 * 
	 * @param planId
	 *            计划id
	 * @return plan对象
	 * @throws Exception
	 */
	public Plan selectById(int planId) throws Exception;

	/**
	 * 根据组的id查询计划
	 * 
	 * @param groupId
	 *            组id
	 * @return 计划
	 * @throws Exception
	 */
	public Plan selectByGroupId(int groupId) throws Exception;
}
